<template>
<div class="panel">
    <div class="panel-header">
        <div class="bl"></div>
        <div class="title">
            跟进人
        </div>
        <div class="more">
            <!-- <el-button v-if="!allocate.sign_time" type="primary" size="small" @click="doSign">签到</el-button> -->
        </div>
    </div>
    <div class="panel-body">
        <el-table :data="ownerList" border>
            <el-table-column label="跟进人" prop="user.realname"></el-table-column>
            <el-table-column label="分配人" prop="from_user.realname"></el-table-column>
            <el-table-column label="回访次数" prop="visit_times"></el-table-column>
            <el-table-column label="回访状态" prop="visit_status.title"></el-table-column>
            <el-table-column label="获取时间" prop="create_time" width="130"></el-table-column>
            <el-table-column label="下次回访时间" prop="next_visit_time" width="160">
                <template slot-scope="scope">
                    <span>{{scope.row.next_visit_time}}</span>
                    <i v-if="scope.row.is_visit == 0" class="el-icon-warning-outline" style="color:#F56C6C; padding:0 8px"></i>
                </template>
            </el-table-column>
        </el-table>
    </div>
</div>
</template>

<script>

export default {
    props: {
        ownerList: {
            type: Array,
            default: []
        },
        allocate: {
            id: "",
            member_id: "",
            sign_time: "",
        }
    },
    methods: {
        doSign() {
            this.$emit('doSign');
        }
    }
}
</script>
